const express = require('express');
const typeController = require('../controllers/typeController');

const router = express.Router();

// 获取所有标题
router.get('/gets', typeController.gets);

// 添加新标题
router.post('/add', typeController.add);

// 更新标题
router.post('/updateTypes', typeController.updateTypes);

// 删除多个标题
router.post('/deleteTypes', typeController.deleteTypes);

module.exports = router;
